package net.tksl.crm.service.impl;

import java.util.List;

import net.tksl.crm.dao.DatabaseObjectDao;
import net.tksl.crm.dao.bd.HostingBD;
import net.tksl.crm.service.HostingService;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Service;

@Service("hostingServiceImpl")
public class HostingServiceImpl implements HostingService {

	static Logger logger = Logger.getLogger(HostingServiceImpl.class);
	
	@Autowired
	@Qualifier("databaseObjectDaoImpl")
	private DatabaseObjectDao databaseObjectDao;
	
	public List<HostingBD> obtenerCuentasHosting() {
		List<HostingBD> lstCuentas = databaseObjectDao.findByHql("from HostingBD h order by h.id desc");
		return lstCuentas;
	}

}